<!DOCTYPE html>

<html lang="en">
<head>
  <meta charset="utf-8" />
  <link href="../css/bootstrap.css" rel="stylesheet" />
  <link href="../css/all.css" rel="stylesheet" />
  <link href="../css/index.css" rel="stylesheet" />
  <script type="text/javascript">
  		function toBook(id){
  			 window.parent.location.href='../book/'+id;
  		}
  </script>

</head>
<body>

     <div class="widget wid-post">
       <div class="wid-header">
         <h5>借阅排行</h5>
       </div>
       <div class="wid-content clear-f">
	       <th:block th:each="book,index:${bookList}">
	         <div class="post flex-b-sc">
	           <a class="fl" th:onclick="'javascript:toBook('+${book.bookid}+')'">
	             <img th:src="${book.bookpicture}" />
	           </a>
	           <div class="wrapper fl">
	             <h5>
	               <a th:onclick="'javascript:toBook('+${book.bookid}+')'" th:text="${book.bookname}">红楼梦</a>
	             </h5>
	             <p th:text="'作者：'+${book.bookauthor}">作者：曹雪芹</p>
	             <p th:text="'类型：'+${book.type.typename}">类型：文学</p>
	           </div>
	         </div>
	        </th:block>
       </div>
     </div>

</body>    
</html>